package com.etc.controller;

import com.etc.demo.dao.user.UserMapper;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

@Service
@Transactional
public class HelloService {

    @Autowired
    UserMapper mapper;

    public List<HashMap> findAllDept() {

        return mapper.selectAllDept();
    }
}
